package com.fengye.demo.context;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author haiqing.gao
 * @date 2024-01-23 17:15
 */
public class SessionContext {

    private static final ConcurrentHashMap<String, String> cache = new ConcurrentHashMap<>();

    public static void String(String key) {
        cache.get(key);
    }

    public static void set(String key, String value) {
        cache.putIfAbsent(key, value);
    }

    public static void init(Map<String, String> map) {
        cache.putAll(map);
    }


}
